<?php
class Zend_View_Helper_isAllowed extends Zend_View_Helper_Abstract
{
     public function isAllowed( $_resource_name )
     {
         $acl = Zend_Registry::get('acl');
		 $role = Zend_Registry::get('currentRoleName');
		 if ( !$acl->has( $_resource_name ) ){
			 return false;
		 }
         return $acl->isAllowed($role, $_resource_name);
     }
}
